<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:forgeview="http://jboss.org/forge/view"
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{pcPurchaseOrderBean.id}"/>
		<f:event type="preRenderView" listener="#{pcPurchaseOrderBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="View Pc Purchase Order"/>

	<ui:define name="header">
		Pc Purchase Order
	</ui:define>

	<ui:define name="subheader">
		View existing Pc Purchase Order
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:panelGrid columnClasses="label,component,required" columns="3">
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoNo" value="Po No:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoNo" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poNo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderSysTitleName" value="Sys Title Name:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderSysTitleName" outcome="/sysTitleName/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.sysTitleName}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.sysTitleName.titleNameNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderMmSupplierType" value="Mm Supplier Type:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderMmSupplierType" outcome="/mmSupplierType/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.mmSupplierType}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.mmSupplierType.supplierTypeNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderStatus" value="Pc Purchase Order Status:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderStatus" outcome="/pcPurchaseOrderStatus/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderStatus}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderStatus.poStatusNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderHrEmp" value="Hr Emp:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderHrEmp" outcome="/hrEmp/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.hrEmp}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.hrEmp.empNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderSysTermOfPayment" value="Sys Term Of Payment:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderSysTermOfPayment" outcome="/sysTermOfPayment/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.sysTermOfPayment}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.sysTermOfPayment.termOfPaymentNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderMmSupplier" value="Mm Supplier:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderMmSupplier" outcome="/mmSupplier/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.mmSupplier}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.mmSupplier.supplierNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReq" value="Pc Purchase Req:"/>
			<h:link id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReq" outcome="/pcPurchaseReq/view" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseReq}">
				<f:param name="id" value="#{pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseReq.prNo}"/>
			</h:link>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoCode" value="Po Code:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoCode" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDescr" value="Po Descr:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDescr" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDescr}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDate" value="Po Date:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDate" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDate}">
				<f:convertDateTime type="date"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoRefSupplierQtCode" value="Po Ref Supplier Qt Code:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoRefSupplierQtCode" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poRefSupplierQtCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierCode" value="Po Supplier Code:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierCode" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierFirstName" value="Po Supplier First Name:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierFirstName" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierFirstName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierMidName" value="Po Supplier Mid Name:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierMidName" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierMidName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierLastName" value="Po Supplier Last Name:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierLastName" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierLastName}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierIdCardNo" value="Po Supplier Id Card No:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoSupplierIdCardNo" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poSupplierIdCardNo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTermOfPaymentCode" value="Po Term Of Payment Code:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTermOfPaymentCode" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTermOfPaymentCode}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountPerc" value="Po Discount Perc:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountPerc" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDiscountPerc}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountVal" value="Po Discount Val:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountVal" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDiscountVal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountTotal" value="Po Discount Total:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoDiscountTotal" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poDiscountTotal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoStatusIncVat" value="Po Status Inc Vat:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoStatusIncVat" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poStatusIncVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoVatPercVal" value="Po Vat Perc Val:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoVatPercVal" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poVatPercVal}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPriceExcVat" value="Po Total Price Exc Vat:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPriceExcVat" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTotalPriceExcVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalVat" value="Po Total Vat:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTotalVat" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTotalVat}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPrice" value="Po Total Price:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoTotalPrice" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poTotalPrice}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoCreatedDtm" value="Po Created Dtm:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoCreatedDtm" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poCreatedDtm}">
				<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
			</h:outputText>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPoMemo" value="Po Memo:"/>
			<h:outputText id="pcPurchaseOrderBeanPcPurchaseOrderPoMemo" value="#{pcPurchaseOrderBean.pcPurchaseOrder.poMemo}"/>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierAddrs" value="Pc Purchase Order Supplier Addrs:"/>
			<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierAddrs" styleClass="data-table" value="#{forgeview:asList(pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderSupplierAddrs)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr Type"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddrType" value="#{forgeview:display(_item.sysAddrType)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Addr 01"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysAddr01" value="#{forgeview:display(_item.sysAddr01)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Addr No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierAddrNo" value="#{_item.poSupplierAddrNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Addr Moo"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierAddrMoo" value="#{_item.poSupplierAddrMoo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Addr Soi"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierAddr/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierAddrSoi" value="#{_item.poSupplierAddrSoi}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderItems" value="Pc Purchase Order Items:"/>
			<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderItems" styleClass="data-table" value="#{forgeview:asList(pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderItems)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Qty"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoQty" value="#{_item.poQty}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Ppu"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoPpu" value="#{_item.poPpu}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Status Inc Vat"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoStatusIncVat" value="#{_item.poStatusIncVat}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoVatPercVal" value="#{_item.poVatPercVal}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Vat Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderItem/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoVatVal" value="#{_item.poVatVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReceipts" value="Pc Purchase Receipts:"/>
			<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseReceipts" styleClass="data-table" value="#{forgeview:asList(pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseReceipts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceipt/view">
						<f:param name="id" value="#{_item.rcptNo}"/>
						<h:outputText id="itemRcptNo" value="#{_item.rcptNo}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Code"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceipt/view">
						<f:param name="id" value="#{_item.rcptNo}"/>
						<h:outputText id="itemRcptCode" value="#{_item.rcptCode}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Descr"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceipt/view">
						<f:param name="id" value="#{_item.rcptNo}"/>
						<h:outputText id="itemRcptDescr" value="#{_item.rcptDescr}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Date"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceipt/view">
						<f:param name="id" value="#{_item.rcptNo}"/>
						<h:outputText id="itemRcptDate" value="#{_item.rcptDate}">
							<f:convertDateTime type="date"/>
						</h:outputText>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Rcpt Vat Perc Val"/>
					</f:facet>
					<h:link outcome="/pcPurchaseReceipt/view">
						<f:param name="id" value="#{_item.rcptNo}"/>
						<h:outputText id="itemRcptVatPercVal" value="#{_item.rcptVatPercVal}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
			<h:outputLabel for="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierContacts" value="Pc Purchase Order Supplier Contacts:"/>
			<h:dataTable id="pcPurchaseOrderBeanPcPurchaseOrderPcPurchaseOrderSupplierContacts" styleClass="data-table" value="#{forgeview:asList(pcPurchaseOrderBean.pcPurchaseOrder.pcPurchaseOrderSupplierContacts)}" var="_item">
				<h:column>
					<f:facet name="header">
						<h:outputText value="Sys Title Name"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="forgeviewdisplayitemSysTitleName" value="#{forgeview:display(_item.sysTitleName)}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Contact First Name"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierContactFirstName" value="#{_item.poSupplierContactFirstName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Contact Mid Name"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierContactMidName" value="#{_item.poSupplierContactMidName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Contact Last Name"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierContactLastName" value="#{_item.poSupplierContactLastName}"/>
					</h:link>
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="Po Supplier Contact Phone No"/>
					</f:facet>
					<h:link outcome="/pcPurchaseOrderSupplierContact/view">
						<f:param name="id" value="#{_item.id}"/>
						<h:outputText id="itemPoSupplierContactPhoneNo" value="#{_item.poSupplierContactPhoneNo}"/>
					</h:link>
				</h:column>
			</h:dataTable>
			<h:outputText/>
		</h:panelGrid>

		<div class="buttons">
			<h:link value="View All" outcome="search" styleClass="btn btn-primary"/> 
			<h:link value="Edit" outcome="create" includeViewParams="true" styleClass="btn btn-primary"/>
			<h:link value="Create New" outcome="create" styleClass="btn btn-primary"/>
		</div>
	</ui:define>

</ui:composition>